<?php

// On demande les 5 derniers evenements au modéle
include_once('models/get_events.php');


$slides=slide_events(0,40);
foreach ($slides as $cle => $slide)
{
	$slides[$cle]['nom'] = htmlspecialchars($slide['nom']);
	$slides[$cle]['description']=nl2br(htmlspecialchars($slide['description']));
	$slides[$cle]['chemin'] = $slide['chemin'];
}


// On affiche la vue
include 'vues/tsEvents.php';
?>